import React from "react";
import { Calendar, Dialog } from "react-vant";
const Index: React.FC = () => {
  const onConfirm = () => {
    Dialog.alert({
      message: "签到成功！！！！！！！！！！",
    });
  };
  return (
    <div>
      <Calendar
        poppable={false}
        maxDate={new Date()}
        defaultValue={new Date()}
        confirmText="立即签到"
        onConfirm={() => onConfirm()}
      ></Calendar>
    </div>
  );
};

export default Index;
